use clap::Parser;

#[derive(clap::Parser)]
#[clap(author, version, about)]
#[clap(long_about = "zap, the AI powered command prompt generator")]
struct Args {
    #[clap(num_args=1..)]
    input: Vec<String>,
    #[clap(short, long, default_value_t = false)]
    ai: bool,
}

fn main() {
    let args = Args::parse();

    let input = args.input;
    let input = input.join(" ");

    println!("Hello, world!");
    println!("input: {}", input);

    matching_history(&input);
}

fn matching_history(query: &str) {
    // we have a history of commands, founding the simillar one
    // and return the result

    println!("mathing histry: {}", query);
}
